﻿package com.obas.model.business
{
	import com.obas.model.business.Device;
	import com.obas.model.business.Entity;
	import com.obas.model.business.Location;
	import com.obas.model.business.Slot;

	[Bindable]
	[RemoteClass(alias="com.obas.model.business.Slot")]
	
	public class Slot
		extends
			com.obas.model.business.Entity
	{
		public static const Attribute_deviceId:String="deviceId";
		public static const Attribute_slotId:String="slotId";

		private var _deviceId:Number;
		private var _device:com.obas.model.business.Device;
		private var _slotId:Number;
		private var _slot:com.obas.model.business.Slot;
		private var _areaId:Number;
		private var _area:com.obas.model.business.Location;
		private var _subareaId:Number;
		private var _subarea:com.obas.model.business.Location;

		public function Slot()
		{
		}

		public function get deviceId():Number
		{
			return _deviceId;
		}

		public function set deviceId(value:Number):void
		{
			_deviceId = value;
		}

		public function get device():com.obas.model.business.Device
		{
			return _device;
		}

		public function set device(value:com.obas.model.business.Device):void
		{
			_device = value;
		}

		public function get slotId():Number
		{
			return _slotId;
		}

		public function set slotId(value:Number):void
		{
			_slotId = value;
		}

		public function get slot():com.obas.model.business.Slot
		{
			return _slot;
		}

		public function set slot(value:com.obas.model.business.Slot):void
		{
			_slot = value;
		}

		public function get areaId():Number
		{
			return _areaId;
		}

		public function set areaId(value:Number):void
		{
			_areaId = value;
		}

		public function get area():com.obas.model.business.Location
		{
			return _area;
		}

		public function set area(value:com.obas.model.business.Location):void
		{
			_area = value;
		}

		public function get subareaId():Number
		{
			return _subareaId;
		}

		public function set subareaId(value:Number):void
		{
			_subareaId = value;
		}

		public function get subarea():com.obas.model.business.Location
		{
			return _subarea;
		}

		public function set subarea(value:com.obas.model.business.Location):void
		{
			_subarea = value;
		}
	}
}